﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;
using Volo.Abp;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Vouchers
{
    [Comment("订单主表")]
    [Table("t_ordervoucher")]
    [Index(nameof(VoucherCode))]
    public class OrderVoucher:VoucherBase
    {
        public OrderVoucher(Guid id)
        {
            this.Id = id;
        }

        public OrderVoucher()
        {

        }

        [Comment("仓库id")]
        public Guid WarehouseId { get; set; }

        [MaxLength(50)]
        [Comment("仓库名称")]
        public string WarehouseName { get; set; }
        [Comment("供应商id")]
        public Guid? SupplierId { get; set; }


        [MaxLength(200)]
        [Comment("供应商名称")]
        public string SupplierName { get; set; }

        [MaxLength(200)]
        [Comment("配送地址")]
        public string ReceiveAddress { get; set; }
    }
}
